home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 1.toast / What's New / Development Kits / ColorSync 2.6 Mac SDK / Interfaces / CMScriptingPlugin.p < prev   
Encoding:
Text File  |  1999-04-12  |  17.4 KB  |  439 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMScriptingPlugin.p
  3.  
  4.      Contains:    ColorSync Scripting Plugin API
  5.  
  6.      Version:    Technology:    ColorSync 2.5
  7.                  Release:    ColorSync 2.6 SDK for use with Universal Interfaces 3.1
  8.  
  9.      Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT CMScriptingPlugin;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __CMSCRIPTINGPLUGIN__}
  27. {$SETC __CMSCRIPTINGPLUGIN__ := 1}
  28.  
  29. {$I+}
  30. {$SETC CMScriptingPluginIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __FILES__}
  34. {$I Files.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __CMAPPLICATION__}
  37. {$I CMApplication.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __CODEFRAGMENTS__}
  40. {$I CodeFragments.p}
  41. {$ENDC}
  42.  
  43.  
  44.  
  45.  
  46. {$PUSH}
  47. {$ALIGN MAC68K}
  48. {$LibExport+}
  49.  
  50.  
  51. CONST
  52.                                                                 {  ColorSync Scripting AppleEvent Errors  }
  53.     cmspInvalidImageFile        = -4220;                        {  Plugin cannot handle this image file type  }
  54.     cmspInvalidImageSpace        = -4221;                        {  Plugin cannot create an image file of this colorspace  }
  55.     cmspInvalidProfileEmbed        = -4222;                        {  Specific invalid profile errors  }
  56.     cmspInvalidProfileSource    = -4223;
  57.     cmspInvalidProfileDest        = -4224;
  58.     cmspInvalidProfileProof        = -4225;
  59.     cmspInvalidProfileLink        = -4226;
  60.  
  61.  
  62. {*** embedFlags field  ***}
  63. { reserved for future use: currently 0 }
  64.  
  65. {*** matchFlags field  ***}
  66.     cmspFavorEmbeddedMask        = $00000001;                    {  if bit 0 is 0 then use srcProf profile, if 1 then use profile embedded in image if present }
  67.  
  68.  
  69. {*** scripting plugin entry points  ***}
  70.  
  71. TYPE
  72. {$IFC TYPED_FUNCTION_POINTERS}
  73.     ValidateImageProcPtr = FUNCTION({CONST}VAR spec: FSSpec): CMError; C;
  74. {$ELSEC}
  75.     ValidateImageProcPtr = ProcPtr;
  76. {$ENDC}
  77.  
  78. {$IFC TYPED_FUNCTION_POINTERS}
  79.     GetImageSpaceProcPtr = FUNCTION({CONST}VAR spec: FSSpec; VAR space: OSType): CMError; C;
  80. {$ELSEC}
  81.     GetImageSpaceProcPtr = ProcPtr;
  82. {$ENDC}
  83.  
  84. {$IFC TYPED_FUNCTION_POINTERS}
  85.     ValidateSpaceProcPtr = FUNCTION({CONST}VAR spec: FSSpec; VAR space: OSType): CMError; C;
  86. {$ELSEC}
  87.     ValidateSpaceProcPtr = ProcPtr;
  88. {$ENDC}
  89.  
  90. {$IFC TYPED_FUNCTION_POINTERS}
  91.     EmbedImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; embedProf: CMProfileRef; embedFlags: UInt32): CMError; C;
  92. {$ELSEC}
  93.     EmbedImageProcPtr = ProcPtr;
  94. {$ENDC}
  95.  
  96. {$IFC TYPED_FUNCTION_POINTERS}
  97.     UnembedImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec): CMError; C;
  98. {$ELSEC}
  99.     UnembedImageProcPtr = ProcPtr;
  100. {$ENDC}
  101.  
  102. {$IFC TYPED_FUNCTION_POINTERS}
  103.     MatchImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; qual: UInt32; srcIntent: UInt32; srcProf: CMProfileRef; dstProf: CMProfileRef; prfProf: CMProfileRef; matchFlags: UInt32): CMError; C;
  104. {$ELSEC}
  105.     MatchImageProcPtr = ProcPtr;
  106. {$ENDC}
  107.  
  108. {$IFC TYPED_FUNCTION_POINTERS}
  109.     CountImageProfilesProcPtr = FUNCTION({CONST}VAR spec: FSSpec; VAR count: UInt32): CMError; C;
  110. {$ELSEC}
  111.     CountImageProfilesProcPtr = ProcPtr;
  112. {$ENDC}
  113.  
  114. {$IFC TYPED_FUNCTION_POINTERS}
  115.     GetIndImageProfileProcPtr = FUNCTION({CONST}VAR spec: FSSpec; index: UInt32; VAR prof: CMProfileRef): CMError; C;
  116. {$ELSEC}
  117.     GetIndImageProfileProcPtr = ProcPtr;
  118. {$ENDC}
  119.  
  120. {$IFC TYPED_FUNCTION_POINTERS}
  121.     SetIndImageProfileProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; index: UInt32; prof: CMProfileRef; embedFlags: UInt32): CMError; C;
  122. {$ELSEC}
  123.     SetIndImageProfileProcPtr = ProcPtr;
  124. {$ENDC}
  125.  
  126. {*** CSScriptingLib entry points  ***}
  127. {$IFC TYPED_FUNCTION_POINTERS}
  128.     CMValidImageProcPtr = FUNCTION({CONST}VAR spec: FSSpec): CMError; C;
  129. {$ELSEC}
  130.     CMValidImageProcPtr = ProcPtr;
  131. {$ENDC}
  132.  
  133. {$IFC TYPED_FUNCTION_POINTERS}
  134.     CMGetImageSpaceProcPtr = FUNCTION({CONST}VAR spec: FSSpec; VAR space: OSType): CMError; C;
  135. {$ELSEC}
  136.     CMGetImageSpaceProcPtr = ProcPtr;
  137. {$ENDC}
  138.  
  139. {$IFC TYPED_FUNCTION_POINTERS}
  140.     CMEmbedImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; embProf: CMProfileRef): CMError; C;
  141. {$ELSEC}
  142.     CMEmbedImageProcPtr = ProcPtr;
  143. {$ENDC}
  144.  
  145. {$IFC TYPED_FUNCTION_POINTERS}
  146.     CMUnembedImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN): CMError; C;
  147. {$ELSEC}
  148.     CMUnembedImageProcPtr = ProcPtr;
  149. {$ENDC}
  150.  
  151. {$IFC TYPED_FUNCTION_POINTERS}
  152.     CMMatchImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef): CMError; C;
  153. {$ELSEC}
  154.     CMMatchImageProcPtr = ProcPtr;
  155. {$ENDC}
  156.  
  157. {$IFC TYPED_FUNCTION_POINTERS}
  158.     CMProofImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef; prfProf: CMProfileRef): CMError; C;
  159. {$ELSEC}
  160.     CMProofImageProcPtr = ProcPtr;
  161. {$ENDC}
  162.  
  163. {$IFC TYPED_FUNCTION_POINTERS}
  164.     CMLinkImageProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; lnkProf: CMProfileRef; lnkIntent: UInt32): CMError; C;
  165. {$ELSEC}
  166.     CMLinkImageProcPtr = ProcPtr;
  167. {$ENDC}
  168.  
  169. {$IFC TYPED_FUNCTION_POINTERS}
  170.     CMCountImageProfilesProcPtr = FUNCTION({CONST}VAR spec: FSSpec; VAR count: UInt32): CMError; C;
  171. {$ELSEC}
  172.     CMCountImageProfilesProcPtr = ProcPtr;
  173. {$ENDC}
  174.  
  175. {$IFC TYPED_FUNCTION_POINTERS}
  176.     CMGetIndImageProfileProcPtr = FUNCTION({CONST}VAR spec: FSSpec; index: UInt32; VAR prof: CMProfileRef): CMError; C;
  177. {$ELSEC}
  178.     CMGetIndImageProfileProcPtr = ProcPtr;
  179. {$ENDC}
  180.  
  181. {$IFC TYPED_FUNCTION_POINTERS}
  182.     CMSetIndImageProfileProcPtr = FUNCTION({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; index: UInt32; prof: CMProfileRef): CMError; C;
  183. {$ELSEC}
  184.     CMSetIndImageProfileProcPtr = ProcPtr;
  185. {$ENDC}
  186.  
  187.     ValidateImageUPP = UniversalProcPtr;
  188.     GetImageSpaceUPP = UniversalProcPtr;
  189.     ValidateSpaceUPP = UniversalProcPtr;
  190.     EmbedImageUPP = UniversalProcPtr;
  191.     UnembedImageUPP = UniversalProcPtr;
  192.     MatchImageUPP = UniversalProcPtr;
  193.     CountImageProfilesUPP = UniversalProcPtr;
  194.     GetIndImageProfileUPP = UniversalProcPtr;
  195.     SetIndImageProfileUPP = UniversalProcPtr;
  196.     CMValidImageUPP = UniversalProcPtr;
  197.     CMGetImageSpaceUPP = UniversalProcPtr;
  198.     CMEmbedImageUPP = UniversalProcPtr;
  199.     CMUnembedImageUPP = UniversalProcPtr;
  200.     CMMatchImageUPP = UniversalProcPtr;
  201.     CMProofImageUPP = UniversalProcPtr;
  202.     CMLinkImageUPP = UniversalProcPtr;
  203.     CMCountImageProfilesUPP = UniversalProcPtr;
  204.     CMGetIndImageProfileUPP = UniversalProcPtr;
  205.     CMSetIndImageProfileUPP = UniversalProcPtr;
  206.  
  207. CONST
  208.     uppValidateImageProcInfo = $000000F1;
  209.     uppGetImageSpaceProcInfo = $000003F1;
  210.     uppValidateSpaceProcInfo = $000003F1;
  211.     uppEmbedImageProcInfo = $00003FF1;
  212.     uppUnembedImageProcInfo = $000003F1;
  213.     uppMatchImageProcInfo = $003FFFF1;
  214.     uppCountImageProfilesProcInfo = $000003F1;
  215.     uppGetIndImageProfileProcInfo = $00000FF1;
  216.     uppSetIndImageProfileProcInfo = $0000FFF1;
  217.     uppCMValidImageProcInfo = $000000F1;
  218.     uppCMGetImageSpaceProcInfo = $000003F1;
  219.     uppCMEmbedImageProcInfo = $000037F1;
  220.     uppCMUnembedImageProcInfo = $000007F1;
  221.     uppCMMatchImageProcInfo = $000FF7F1;
  222.     uppCMProofImageProcInfo = $003FF7F1;
  223.     uppCMLinkImageProcInfo = $0003F7F1;
  224.     uppCMCountImageProfilesProcInfo = $000003F1;
  225.     uppCMGetIndImageProfileProcInfo = $00000FF1;
  226.     uppCMSetIndImageProfileProcInfo = $0000F7F1;
  227.  
  228. FUNCTION NewValidateImageProc(userRoutine: ValidateImageProcPtr): ValidateImageUPP;
  229.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  230.     INLINE $2E9F;
  231.     {$ENDC}
  232.  
  233. FUNCTION NewGetImageSpaceProc(userRoutine: GetImageSpaceProcPtr): GetImageSpaceUPP;
  234.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  235.     INLINE $2E9F;
  236.     {$ENDC}
  237.  
  238. FUNCTION NewValidateSpaceProc(userRoutine: ValidateSpaceProcPtr): ValidateSpaceUPP;
  239.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  240.     INLINE $2E9F;
  241.     {$ENDC}
  242.  
  243. FUNCTION NewEmbedImageProc(userRoutine: EmbedImageProcPtr): EmbedImageUPP;
  244.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  245.     INLINE $2E9F;
  246.     {$ENDC}
  247.  
  248. FUNCTION NewUnembedImageProc(userRoutine: UnembedImageProcPtr): UnembedImageUPP;
  249.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  250.     INLINE $2E9F;
  251.     {$ENDC}
  252.  
  253. FUNCTION NewMatchImageProc(userRoutine: MatchImageProcPtr): MatchImageUPP;
  254.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  255.     INLINE $2E9F;
  256.     {$ENDC}
  257.  
  258. FUNCTION NewCountImageProfilesProc(userRoutine: CountImageProfilesProcPtr): CountImageProfilesUPP;
  259.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  260.     INLINE $2E9F;
  261.     {$ENDC}
  262.  
  263. FUNCTION NewGetIndImageProfileProc(userRoutine: GetIndImageProfileProcPtr): GetIndImageProfileUPP;
  264.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  265.     INLINE $2E9F;
  266.     {$ENDC}
  267.  
  268. FUNCTION NewSetIndImageProfileProc(userRoutine: SetIndImageProfileProcPtr): SetIndImageProfileUPP;
  269.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  270.     INLINE $2E9F;
  271.     {$ENDC}
  272.  
  273. FUNCTION NewCMValidImageProc(userRoutine: CMValidImageProcPtr): CMValidImageUPP;
  274.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  275.     INLINE $2E9F;
  276.     {$ENDC}
  277.  
  278. FUNCTION NewCMGetImageSpaceProc(userRoutine: CMGetImageSpaceProcPtr): CMGetImageSpaceUPP;
  279.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  280.     INLINE $2E9F;
  281.     {$ENDC}
  282.  
  283. FUNCTION NewCMEmbedImageProc(userRoutine: CMEmbedImageProcPtr): CMEmbedImageUPP;
  284.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  285.     INLINE $2E9F;
  286.     {$ENDC}
  287.  
  288. FUNCTION NewCMUnembedImageProc(userRoutine: CMUnembedImageProcPtr): CMUnembedImageUPP;
  289.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  290.     INLINE $2E9F;
  291.     {$ENDC}
  292.  
  293. FUNCTION NewCMMatchImageProc(userRoutine: CMMatchImageProcPtr): CMMatchImageUPP;
  294.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  295.     INLINE $2E9F;
  296.     {$ENDC}
  297.  
  298. FUNCTION NewCMProofImageProc(userRoutine: CMProofImageProcPtr): CMProofImageUPP;
  299.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  300.     INLINE $2E9F;
  301.     {$ENDC}
  302.  
  303. FUNCTION NewCMLinkImageProc(userRoutine: CMLinkImageProcPtr): CMLinkImageUPP;
  304.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  305.     INLINE $2E9F;
  306.     {$ENDC}
  307.  
  308. FUNCTION NewCMCountImageProfilesProc(userRoutine: CMCountImageProfilesProcPtr): CMCountImageProfilesUPP;
  309.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  310.     INLINE $2E9F;
  311.     {$ENDC}
  312.  
  313. FUNCTION NewCMGetIndImageProfileProc(userRoutine: CMGetIndImageProfileProcPtr): CMGetIndImageProfileUPP;
  314.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  315.     INLINE $2E9F;
  316.     {$ENDC}
  317.  
  318. FUNCTION NewCMSetIndImageProfileProc(userRoutine: CMSetIndImageProfileProcPtr): CMSetIndImageProfileUPP;
  319.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  320.     INLINE $2E9F;
  321.     {$ENDC}
  322.  
  323. FUNCTION CallValidateImageProc({CONST}VAR spec: FSSpec; userRoutine: ValidateImageUPP): CMError;
  324.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  325.     {To be implemented:  Glue to move parameters into registers.}
  326.     {$ENDC}
  327.  
  328. FUNCTION CallGetImageSpaceProc({CONST}VAR spec: FSSpec; VAR space: OSType; userRoutine: GetImageSpaceUPP): CMError;
  329.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  330.     {To be implemented:  Glue to move parameters into registers.}
  331.     {$ENDC}
  332.  
  333. FUNCTION CallValidateSpaceProc({CONST}VAR spec: FSSpec; VAR space: OSType; userRoutine: ValidateSpaceUPP): CMError;
  334.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  335.     {To be implemented:  Glue to move parameters into registers.}
  336.     {$ENDC}
  337.  
  338. FUNCTION CallEmbedImageProc({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; embedProf: CMProfileRef; embedFlags: UInt32; userRoutine: EmbedImageUPP): CMError;
  339.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  340.     {To be implemented:  Glue to move parameters into registers.}
  341.     {$ENDC}
  342.  
  343. FUNCTION CallUnembedImageProc({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; userRoutine: UnembedImageUPP): CMError;
  344.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  345.     {To be implemented:  Glue to move parameters into registers.}
  346.     {$ENDC}
  347.  
  348. FUNCTION CallMatchImageProc({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; qual: UInt32; srcIntent: UInt32; srcProf: CMProfileRef; dstProf: CMProfileRef; prfProf: CMProfileRef; matchFlags: UInt32; userRoutine: MatchImageUPP): CMError;
  349.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  350.     {To be implemented:  Glue to move parameters into registers.}
  351.     {$ENDC}
  352.  
  353. FUNCTION CallCountImageProfilesProc({CONST}VAR spec: FSSpec; VAR count: UInt32; userRoutine: CountImageProfilesUPP): CMError;
  354.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  355.     {To be implemented:  Glue to move parameters into registers.}
  356.     {$ENDC}
  357.  
  358. FUNCTION CallGetIndImageProfileProc({CONST}VAR spec: FSSpec; index: UInt32; VAR prof: CMProfileRef; userRoutine: GetIndImageProfileUPP): CMError;
  359.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  360.     {To be implemented:  Glue to move parameters into registers.}
  361.     {$ENDC}
  362.  
  363. FUNCTION CallSetIndImageProfileProc({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; index: UInt32; prof: CMProfileRef; embedFlags: UInt32; userRoutine: SetIndImageProfileUPP): CMError;
  364.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  365.     {To be implemented:  Glue to move parameters into registers.}
  366.     {$ENDC}
  367.  
  368. FUNCTION CallCMValidImageProc({CONST}VAR spec: FSSpec; userRoutine: CMValidImageUPP): CMError;
  369.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  370.     {To be implemented:  Glue to move parameters into registers.}
  371.     {$ENDC}
  372.  
  373. FUNCTION CallCMGetImageSpaceProc({CONST}VAR spec: FSSpec; VAR space: OSType; userRoutine: CMGetImageSpaceUPP): CMError;
  374.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  375.     {To be implemented:  Glue to move parameters into registers.}
  376.     {$ENDC}
  377.  
  378. FUNCTION CallCMEmbedImageProc({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; embProf: CMProfileRef; userRoutine: CMEmbedImageUPP): CMError;
  379.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  380.     {To be implemented:  Glue to move parameters into registers.}
  381.     {$ENDC}
  382.  
  383. FUNCTION CallCMUnembedImageProc({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; userRoutine: CMUnembedImageUPP): CMError;
  384.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  385.     {To be implemented:  Glue to move parameters into registers.}
  386.     {$ENDC}
  387.  
  388. FUNCTION CallCMMatchImageProc({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef; userRoutine: CMMatchImageUPP): CMError;
  389.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  390.     {To be implemented:  Glue to move parameters into registers.}
  391.     {$ENDC}
  392.  
  393. FUNCTION CallCMProofImageProc({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef; prfProf: CMProfileRef; userRoutine: CMProofImageUPP): CMError;
  394.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  395.     {To be implemented:  Glue to move parameters into registers.}
  396.     {$ENDC}
  397.  
  398. FUNCTION CallCMLinkImageProc({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; lnkProf: CMProfileRef; lnkIntent: UInt32; userRoutine: CMLinkImageUPP): CMError;
  399.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  400.     {To be implemented:  Glue to move parameters into registers.}
  401.     {$ENDC}
  402.  
  403. FUNCTION CallCMCountImageProfilesProc({CONST}VAR spec: FSSpec; VAR count: UInt32; userRoutine: CMCountImageProfilesUPP): CMError;
  404.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  405.     {To be implemented:  Glue to move parameters into registers.}
  406.     {$ENDC}
  407.  
  408. FUNCTION CallCMGetIndImageProfileProc({CONST}VAR spec: FSSpec; index: UInt32; VAR prof: CMProfileRef; userRoutine: CMGetIndImageProfileUPP): CMError;
  409.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  410.     {To be implemented:  Glue to move parameters into registers.}
  411.     {$ENDC}
  412.  
  413. FUNCTION CallCMSetIndImageProfileProc({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; index: UInt32; prof: CMProfileRef; userRoutine: CMSetIndImageProfileUPP): CMError;
  414.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  415.     {To be implemented:  Glue to move parameters into registers.}
  416.     {$ENDC}
  417. {*** CSScriptingLib API  ***}
  418.  
  419. FUNCTION CMValidImage({CONST}VAR spec: FSSpec): CMError; C;
  420. FUNCTION CMGetImageSpace({CONST}VAR spec: FSSpec; VAR space: OSType): CMError; C;
  421. FUNCTION CMEmbedImage({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; embProf: CMProfileRef): CMError; C;
  422. FUNCTION CMUnembedImage({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN): CMError; C;
  423. FUNCTION CMMatchImage({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef): CMError; C;
  424. FUNCTION CMProofImage({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; srcProf: CMProfileRef; srcIntent: UInt32; dstProf: CMProfileRef; prfProf: CMProfileRef): CMError; C;
  425. FUNCTION CMLinkImage({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; qual: UInt32; lnkProf: CMProfileRef; lnkIntent: UInt32): CMError; C;
  426. FUNCTION CMCountImageProfiles({CONST}VAR spec: FSSpec; VAR count: UInt32): CMError; C;
  427. FUNCTION CMGetIndImageProfile({CONST}VAR spec: FSSpec; index: UInt32; VAR prof: CMProfileRef): CMError; C;
  428. FUNCTION CMSetIndImageProfile({CONST}VAR specFrom: FSSpec; {CONST}VAR specInto: FSSpec; repl: BOOLEAN; index: UInt32; prof: CMProfileRef): CMError; C;
  429. {$ALIGN RESET}
  430. {$POP}
  431.  
  432. {$SETC UsingIncludes := CMScriptingPluginIncludes}
  433.  
  434. {$ENDC} {__CMSCRIPTINGPLUGIN__}
  435.  
  436. {$IFC NOT UsingIncludes}
  437.  END.
  438. {$ENDC}
  439.